<template>
  <div class="app-container">
    <h1>App 根组件</h1>
   <p>{{ countt }}</p>
    <hr />

    <div class="box">
      <!-- 渲染 Left 组件和 Right 组件 -->
      <Right :message="message" @count="count"></Right>
      <Left ></Left>
    </div>
  </div>
</template>

<script>
import Right from "@/components/Right.vue";
import Left from "@/components/Left.vue";
export default {
  components:{
    Left,
    Right
  },
  data(){
    return {
      message:'hello',
      countt : 1
    }
  },
 methods:{
  count(val){
    this.countt = val
  }
 }
}

</script>

<style lang="less">
.app-container {
  padding: 1px 20px 20px;
  background-color: #efefef;
}
.box {
  display: flex;
}
</style>
